# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=viewnior
pkgver=1.8
pkgrel=1
pkgdesc="Fast and simple image viewer"
url="http://siyanpanayotov.com/project/viewnior"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	desktop-file-utils
	exiv2-dev
	gtk+2.0-dev
	meson
	"
subpackages="$pkgname-lang $pkgname-doc"
source="https://github.com/hellosiyan/Viewnior/archive/viewnior-$pkgver.tar.gz
	exiv2-0.28.patch
	"
builddir="$srcdir"/Viewnior-$pkgname-$pkgver

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
0f9698801172ef6b8f5df4132526b2e605e9aa9fd69cf41a091a3623de9b2e84ca857e625aaa9e83f29df318f70a13fb458bac0df11ae46837b78ef257a00bee  viewnior-1.8.tar.gz
d1d83b1e0ef909f141e2e61fabdf11e9db6fb22caf61fb6ed0c002aac141750dd0a6f3c84df9a9354f473a80e816283fb24938c7cf9ff97fbdfc4be26aa843ff  exiv2-0.28.patch
"
